import request from '@/util/request'

export default {

    //获取用户列表
    pageQuery() {
        return request({
            url: `/user/list`,
            method: 'get',
        })
    },


    //添加用户

    add(data){
        return request({
            url: `/user/add`,
            method: 'post',
            data
        })
    },

    //删除用户

    delete(ids){
        return request({
            url:`/user/delete/${ids}`,
            method:"delete"
        })
    },

    //修改用户

    update(data){
        return request({
            url: `/user/update`,
            method: 'post',
            data
        })
    },
}